<form action="https://www.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8" method="post" name="frmTracking" id="frmTracking" >

	<input name="email" type="hidden" value="<?php  echo isset($model->email) ? trim($model->email) : ''; ?>"/>

	<input name="first_name" type="hidden" value="<?php  echo isset($model->name) ? trim($model->name) : ''; ?>"/>

    <input name="phone" type="hidden" value="<?php  echo isset($model->mobile) ? trim($model->mobile) : ''; ?>"/>

    <input name="URL" type="hidden" value="<?php  echo $_SERVER["HTTP_REFERER"]; ?>"/>
    
    <input name="company" type="hidden" value="<?php  echo isset($model->company) ? trim($model->company) : ''; ?>"/>

    <input name="lead_source" type="hidden" value="Web Site Lead"/>

    <input type="hidden" name="oid" value="00D90000000cdxt"/>
    
    <input name="description" type="hidden" value="<?php echo isset($model->message) ? trim($model->message) : ''; ?>"/>

    <input name="00N90000006pnvV" type="hidden" value="<?php echo $_SERVER['REMOTE_ADDR'] ?>"/>

</form>

<div class="text-center">
	<h3 class=headings>Thank you</h3><p>
	<?php if ( isset($newsletter) && !empty($newsletter) ):?>
		Thank you for your interest in Lake B2B. We have signed you up to for our newsletter that delivers blogs, industry news and interesting articles.
	<?php elseif ($model->type == 5):?>
		Thank you for your interest in our 2014 Holiday Offer. You will receive an email shortly with the details of the offer. A representative will also get in touch with you. <a href="<?php echo Yii::app()->getBaseUrl();?>/contact-us">CLICK HERE</a> to go to our contact us page if you need further assistance.
	<?php else: ?>
		Thank you for showing interest in Lake B2B services. One of our business development executives will contact you shortly to provide further information.
	<?php endif;?>
	
	</p>
</div>

<script>
	$(document).ready(function(){
		$.post($('#frmTracking').attr('action'), $('#frmTracking').serialize());
	});
</script>